package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgUser)实体类
 *
 * @author makejava
 * @since 2020-12-04 15:27:12
 */
public class YgUser implements Serializable {
    private static final long serialVersionUID = 475178102664527228L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户昵称 默认值 新用户
     */
    private String userid;
    /**
     * 手机号 可作为手机号登录
     */
    private String phone;
    /**
     * 密码
     */
    private String password;

    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 优惠卷
     */
    private Integer preferentialcard;
    /**
     * 积分
     */
    private Integer point;
    /**
     * 余额 7位数2位小数点
     */
    private Double money;
    /**
     * 创建时间
     */
    private Date createdate;

    public YgUser() {
    }

    public YgUser(Integer id) {
        this.id = id;
    }

    public YgUser(Integer id, Double money) {
        this.id = id;
        this.money = money;
    }

    public YgUser(Integer id, String userid, String phone) {
        this.id = id;
        this.userid = userid;
        this.phone = phone;
    }

    public YgUser(Integer id, String userid, String phone, String password, Integer preferentialcard, Integer point, Double money, Date createdate) {
        this.id = id;
        this.userid = userid;
        this.phone = phone;
        this.password = password;
        this.preferentialcard = preferentialcard;
        this.point = point;
        this.money = money;
        this.createdate = createdate;
    }


    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPreferentialcard() {
        return preferentialcard;
    }

    public void setPreferentialcard(Integer preferentialcard) {
        this.preferentialcard = preferentialcard;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer integral) {
        this.point = integral;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }


    @Override
    public String toString() {
        return "YgUser{" +
                "id=" + id +
                ", userid='" + userid + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", userAvatar='" + userAvatar + '\'' +
                ", preferentialcard=" + preferentialcard +
                ", point=" + point +
                ", money=" + money +
                ", createdate=" + createdate +
                '}';
    }
}